Part Number Hot Search : 
RG4BC ADP1191 SMBJ26A D6F90HT 225100P D6N60 LVC1G 11B4D
Product Description
Full Text Search
 

To Download EVAL-AD1940EB Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  sigmadsp tm multichannel 28-bit audio processor ad1940 re v . 0 inf o rma t io n furnis h e d b y a n alo g d e vic e s is belie v ed to be ac cur a t e an d r e liab le . how e v e r , n o r e spo n sibili t y is assumed b y analog devic e s f o r its use , no r f o r a n y in frin g e me n t s o f pa ten t s o r o t h e r righ ts of th ir d pa r t ies th a t m a y r e s u lt fr o m its use . s p ecifica t io n s subj ec t t o ch an g e with o u t n o tic e . no lic e n s e is g r an t e d b y implica t io n or ot her w ise u n d e r an y p a t e n t or pa t e n t righ ts of analog d e vic e s . t r ade m arks an d r e gist er e d tr ad emar ks ar e the pr oper t y o f their r e spec tiv e o w ners . o n e t e chnology w a y , p . o . b o x 9106, nor w ood, ma 02062-9106, u .s.a . t e l: 781. 329. 47 00 w w w .an a l o g . c o m f a x: 781. 32 6. 870 3 ? 2004 anal og devic es , i n c . all r i gh t s reser v ed. features 16-channel d i gital a u dio processor accepts sample rates up to 19 2 khz 28-bit 28-bit multiplier with full 56-bit accu mulator fully-programmable program ram for cust om program down load parameter r a m allows complete control of 1,024 param e t e rs control port features s a felo a d for transpare n t parameter updates and co mplete mo de a n d memory tra n sfer control target/slew ra m for click-free volume control and dynamic parameter updates double precisi on mode fo r full 56 -bit processing pll for generating mclk from 64 f s , 256 f s , 384 f s , or 512 f s clocks hardware-accelerated dsp co re 21 kb (6, 144 w o rds) data me mory for up to 128 ms of aud i o delay at f s = 4 8 khz flexible seria l data port with i 2 s compatible, left-justifi ed, and right-justif ied seri al port modes 8- and 16-chan nel tdm input/output modes on-chip voltage regulator for compatibility with 3.3 v and 5 v s y stems programmable low power mode fast start-up a n d boot time from power on or reset 48-lead lqfp plastic package applic ati o ns automotive so und s y stems digital te levis i o ns home theater s y stems ( d olby digital/dts po stprocessor) multichannel a u dio syst ems mini-compone nt stereos multimedi a audio digital spea ker crossover musical instruments in-seat sound s y stems (a ircraf ts/motor coach e s) func tio n a l block di agram voltage regulator ad1940 28 28 dsp core data format: pll serial control interface serial data/ tdm inputs master clock input spi i/o ram rom serial data/ tdm outputs 04607-0-001 2 4 4 2 2 5.23 (single precision) 10.46 (double precision) fi g u r e 1 . general description the ad1940 is a co m p lete 28-b i t, sin g le-chi p , m u l t ic ha nne l a u dio ds p fo r e q ua li za t i o n , m u lt i b and d y n a mic s p r o c essin g , del a y co m p en s a t i o n , sp e a k e r com p e n s a t i on, and im a g e e n h a n c em en t . th e s e al g o ri thm s ca n be use d t o co m p en sa t e f o r t h e re a l - w or l d l i m i t a t i ons of s p e a ke r s , am pl i f i e r s , an d l i ste n i n g en vir o n m e n ts, resu l t in g i n a drama t ic i m p r o v em e n t o f pe r c e i v e d a u di o q u al i t y . the sig n al p r o c es sin g us ed in t h e ad1940 is c o m p a r a b le t o tha t f o un d in h i g h en d s t ud i o eq ui p m en t . m o s t o f th e p r oces s i n g i s do ne in f u l l , 56- b i t do ub l e -p r e ci sio n mo de, r e su l t in g i n ver y g o o d lo w le v e l s i g n al p e r f o r ma n c e an d t h e a b s e n c e o f limi t c y cles o r idle t o n e s. th e d y namics p r o c es s o r us es a s o phis t i - ca te d , m u l t i p le - b r e a k p o in t a l gor i t h m o f te n fo und in hig h e nd bro a d c a s t c o mp re s s or s . the ad1940 is a f u l l y-p r og ra mma b l e ds p . e a s y t o us e s o f t wa re al lo ws t h e us er t o g r a p hical l y co nf igur e a c u s t om sig n al p r o c essin g f l o w usin g b l o c ks su ch as b i q u ad f i l t ers, d y na mics p r o c es s o rs, a nd s u r r o u n d s o u n d p r o c es s o rs. an ext e n s i v e co n t r o l p o r t al lo ws c l ic k-f r e e p a ra m e t e r u p da tes, alo n g wi t h r e ad b a ck c a p a b i li ty f r o m an y p o in t i n t h e a l go r i t h m f l o w . the ad1940 s dig i tal in p u t an d o u t p u t p o r t s al lo w a g l ue les s co nne c t io n to a d cs and d a cs b y m u l t i p le, 2-cha n n e l s e r i a l da ta s t r e a m s o r t d m d a ta s t r e a m s. w h e n in td m m o d e , th e ad1940 can in p u t 8 o r 16 c h a nne ls o f s e r i al da ta , and c a n output e i t h e r 8 or 1 6 ch an n e l s of s e r i a l d a t a . t h e i n put a n d o u t p u t p o r t co nf igura t io n s can be individ u al l y s e t. th e ad194 0 i s co n t r o ll ed via a 4-w i r e s p i po r t .
ad1940 rev. 0 | page 2 of 32 table of contents specifications ..................................................................................... 3 digital i/o ..................................................................................... 3 power .............................................................................................. 3 temperature range ...................................................................... 3 digital timing ............................................................................... 4 pll ................................................................................................. 4 regulator ........................................................................................ 4 absolute maximum ratings ............................................................ 5 esd caution .................................................................................. 5 digital timing diagrams ................................................................. 6 pin configuration and function descriptions ............................. 8 features ............................................................................................ 10 pin functions .............................................................................. 11 signal processing ............................................................................ 13 overview ...................................................................................... 13 numeric formats ........................................................................ 13 programming .............................................................................. 13 control port ..................................................................................... 14 overview ...................................................................................... 14 rams and registers ....................................................................... 16 control port addressing ............................................................ 16 parameter ram contents ......................................................... 16 recommended program/parameter loading procedures .... 17 target /sle w r a m ....................................................................... 17 safeload registers ....................................................................... 19 data capture registers .............................................................. 20 dsp core control register ....................................................... 20 ram configuration register ................................................... 21 control port read/write data formats .................................. 22 serial data input/output ports .................................................... 24 serial output control registers ............................................... 26 serial input control register .................................................... 26 initialization .................................................................................... 29 power-up sequence ................................................................... 29 setting master clock/pll mode .............................................. 29 volt age regu l ator ....................................................................... 29 outline dimensions ....................................................................... 30 ordering guide .......................................................................... 30 revision history 7/04revision 0: initial version
ad1940 rev. 0 | page 3 of 32 specifications test conditions, unless otherwise noted. table 1. parameter conditions supply voltage (vdd) 2.5 v pll voltage (pll_vdd) 2.5 v output voltage (odvdd) 5.0 v invdd voltage 5.0 v ambient temperature 25c master clock input 3.072 mhz, 64 f s mode load capacitance 50 pf load current 1 ma input voltage, hi 2.4 v input voltage, lo 0.8 v digital i/o table 2. digital i/o 1 parameter min max unit input voltage, hi (v ih ) 2.1 v input voltage, lo (v il ) 0.8 v input leakage (i ih ) 10 a input leakage (i il ) 10 a high level output voltage (v oh ) odvdd = 4.5 v, i oh = 1 ma 3.9 v high level output voltage (v oh ) odvdd = 3.0 v, i oh = 1 ma 2.6 v low level output voltage (v ol ) odvdd = 4.5 v, i ol = 1 ma 0.4 v low level output voltage (v ol ) odvdd = 3.0 v, i ol = 1 ma 0.3 v input capacitance 5 pf 1 all measurements across ? 40c to 125c (case) and across vdd = 2.25 v to 2.75 v. power table 3. parameter min typ max 1 unit supplies voltage 2.25 2.5 2.75 v digital current 92 155 2 ma pll current 3.5 8 ma digital current, reset 4.5 3 13 3 ma pll current, reset 3 8.5 ma dissipation operation, all supplies 238.8 mw reset, all supplies 10.8 mw 1 maximum specifications are measured across ? 40c to 125c (case) and across vdd = 2.25 v to 2.75 v. 2 measurement running a typical large program that writes to all 16 outputs with 0 db digital sine waves applied to all eight in puts. your program may differ. 3 the digital reset current is specified for the given test condit ions. this current scales with the input mclk rate, so higher input clocks draw more current while in reset. temperature range table 4. parameter min typ max unit functionality guaranteed C40 +105 c ambient C40 +125 c case
ad1940 rev. 0 | page 4 of 32 digital timing table 5 digital timing 1 parameter comments min max unit t mp mclk period 512 f s mode 36 244 ns t mp mclk period 384 f s mode 48 366 ns t mp mclk period 256 f s mode 73 488 ns t mp mclk period 64 f s mode 291 1953 ns t mp mclk period bypass mode 12 ns t mdc mclk duty cycle bypass mode 40 60 % t bil bclk_in lo pulse width 4 ns t bih bclk_in hi pulse width 2 ns t lis lrclk_in setup to bclk_in rising 12 ns t lih lrclk_in hold from bclk_in rising 0 ns t sis sdata_inx setup to bclk_in rising 3 ns t sih sdata_inx hold from bclk_in rising 2 ns t los lrclk_outx setup slave mode 2 ns t loh lrclk_outx hold slave mode 2 ns t ts bclk_outx falling to lrclk_outx timing skew 2 ns t sods sdata_outx delay slave mode, from bclk_outx falling 17 ns t sodm sdata_outx delay master mode, from bclk_outx falling 17 ns t ccpl cclk pulse width lo 1 intmclk (14) 2 ns t ccph cclk pulse width hi 1 intmclk (14) 2 ns t cls clatch setup to cclk rising 0 ns t clh clatch hold from cclk rising 2 intmclk + 4 (32) 2 ns t clph clatch pulse width hi 2 intmclk (28) 2 ns t cds cdata setup to cclk rising 0 ns t cdh cdata hold from cclk rising 2 intmclk + 2 (30) 2 ns t cod cout delay from cclk rising 4 intmclk +18 (74) 2 ns t rlpw resetb lo pulse width 10 ns 1 all timing specifications are given for the default (i 2 s) states of the serial input control port and the serial output control ports. see . table 32 2 these specifications are based on the internal master clock peri od in a specific application. in normal operation, the master clock runs at 1,536 f s , so the internal master clock at f s = 48 khz has a 14 ns period. the values in parentheses are the timing values for f s = 48 khz. pll table 6. parameter min typ max unit lock time 3 20 ms regulator table 7. parameter min typ max unit vsense output voltage 2.25 2.5 2.68 v
ad1940 rev. 0 | page 5 of 3 2 absolute maximum ra tings table 8. parameter min max unit vdd to dgn d C0.3 +3.0 v pll_ vdd to pg nd C0.3 +3.0 v od vdd to dgn d C0.3 +6.0 v invdd to dgnd odvdd +6.0 v digital inputs dgnd C 0.3 invdd + 0.3 v maximum junction temperature 135 c storage temperature range C65 +150 c soldering (10 sec) 300 c s t r e s s es a b o v e t h os e lis t e d u n de r a b s o l u t e m a xi m u m r a t i n g s ma y ca us e p e r m an e n t da ma g e t o t h e de vice . this is a s t r e s s ra t i n g o n ly ; f u nc t i on a l o p e r a t i o n of t h e d e v i c e a t t h e s e or a n y ot h e r c o n d i t i ons ab ove t h o s e i n d i c a te d i n t h e op e r a t i o n a l s e c t i o n of t h i s sp e c if ica t ion is not i m pl i e d. e x p o su re to ab s o lute m a x i m u m r a t i ng c o n d i t i ons for e x te nd e d p e r i o d s m a y af fe c t d e v i c e rel i a b i l it y . table 9. packa g e characteristics p a r a m e t e r m i n t y p m a x u n i t ja thermal resi stance (junction - to-ambient) 72 c/w jc t h ermal resi stance ( j unction - to-case) 19.5 c/w esd c a ution esd (electrostatic discharge) sensitive device. ele c tros tatic charg e s as high as 4000 v readily accumulate on the human body and test eq uipment and can discharge wi thout detection. although this product features proprietary esd protection circu i try, permanent dama ge may occur on devices subjected to high energy electrostatic discharges. theref ore, prop er esd precautions a r e recommended to avoid perform a nce degradation or l o ss of functiona l ity.
ad1940 rev. 0 | page 6 of 3 2 digit a l timing diagrams bclk_in lrclk_in sdata_inx left-justified mode lsb sdata_inx i 2 s-justified mode sdata_inx right-justified mode t bih msb msb-1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t lis t sis t sih t sih t sis t sis t sih t sis t sih t lih t bil 04607-0-013 f i gure 2. s e r i a l inp u t p o r t tim i ng bclk_outx lrclk_outx sdata_outx left-justified mode lsb sdata_outx i 2 s-justified mode sdata_outx right-justified mode t bih msb msb-1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t los t sdds t sddm t sdds t sddm t sdds t sddm t lch t ts t bil 04607-0-014 f i gure 3. s e r i a l o u t p ut p o r t tim i ng
ad1940 rev. 0 | page 7 of 3 2 clatch cclk cdata cout t cls t cds t cdh t cod t ccph t ccpl t clh t clph 04607-0-015 fi g u r e 4 . s p i po r t t i m i n g mc l k r eset b t mp t rlpw 04607-0-016 f i g u re 5. m a s t er cl ock and r e s e t ti m i ng
ad1940 rev. 0 | page 8 of 3 2 pin conf igura t ion and fu nction descriptions 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 48 47 46 45 44 39 38 37 43 42 41 40 gnd bclk_out1 lrclk_out1 odvdd sdata_out3 sdata_out2 sdata_out1 vdd mclk reserved pll_vdd nc sdata_out0 odvdd bclk_out0 lrclk_out0 gnd vdd pin 1 indicator pll_ctrl0 pll_ctrl1 pll_ctrl2 pll_gnd ad1940 top view (not to scale) v d d s d a t a _ i n 1 s d a t a _ i n 2 s d a t a _ i n 3 c o u t c c l k c l a t c h c d a t a r e s e t b g n d s data_ in0 adr_ s e l gn d vr ef vd r iv e v sen se v s u pply in v dd s da t a _o u t 7 sd a ta_out6 od vd d sd a ta_out5 sd at a _ou t 4 vd d 04607-0-002 lrclk_in bclk_in nc = no connect f i g u re 6. 48-l e ad l qfp pin conf ig u r at ion ta ble 10. pi n f u nct i on des c ri pt i o ns pin o. i/o mnemonic description 1, 25, 37 vdd core power. 2 in mclk master clock input. 3 reserved this pin shou ld be conne cted to ground. 4 in pll_ctr l 0 pll control 0. 5 in pll_ctr l 1 pll control 1. 6 in pll_ctr l 2 pll control 2. 7 pll_gnd pll ground. 8 pll_vdd pll power. 9 nc no connect. 10 in lrclk_in left/right cloc k for serial or tdm data inputs. 11 in bclk_in bit clock for serial or tdm data i n puts. 12, 24, 36, 48 gnd digital ground. 13 vdd core power. 14 in sdata_in0 serial data inpu t 0. 15 in sdata_in1 serial data inpu t 1. 16 in sdata_in2/td m_in1 seri al data inpu t 2/ tdm inpu t 1. 17 in sdata_in3/td m_in0 seri al data inpu t 3/ tdm inpu t 0. 18 in adr_sel control port address select. 19 out cout spi data output . 20 in cclk spi clock. 21 in clatch spi data latch. 22 in cdata spi data input. 23 in resetb reset the ad19 40 26 in/out lrclk_out0 left/right clock output 0. 27 in/out bclk_out0 bit clock outpu t 0. 28, 33, 40 odvdd power conne ction for output pi ns. 29 out sdata_out0/tdm_o0 serial data o utput 0/ tdm (16- o r 8-channel) ou tput 0. 30 out sdata_out1 serial data output 1.
ad1940 rev. 0 | page 9 of 32 pin no. i/o mnemonic description 31 out sdata_out2 serial data output 2. 32 out sdata_out3 serial data output 3. 34 in/out lrclk_out1 left/right clock output 1. 35 in/out bclk_out1 bit clock output 1. 38 out sdata_out4/tdm_o1 serial da ta output 4/tdm (8-channel) output 1. 39 out sdata_out5 serial data output 5. 41 out sdata_out6 serial data output 6. 42 out sdata_out7/dcsout serial data output 7/data capture output. 43 invdd input voltage reference. 44 in vsupply voltage level input to regulator. usually 3.3 v or 5 v. 45 in vsense digital power level. should be tied to vdd. 46 out vdrive drive for external pnp transistor. 47 out vref reference level for voltage regulator.
ad1940 rev. 0 | page 10 of 32 fea tures the co r e o f th e ad1940 is a 28-b i t ds p (56-b i t wi t h do ub le p r e c isio n) o p t i mi ze d fo r a u d i o p r o c essin g . the ad1940 con t a i n s a p r og ram ram tha t is ini t ialize d f r o m an i n te r n a l pro g r a m rom on p o we r - up . t h e pr o g r a m r a m ca n b e lo ade d w i t h a c u st o m p r og ra m a f t e r p o w e r - u p . sig n a l p r o c es sin g p a ram e t e rs a r e s t o r e d in a 1024-lo c a tio n p a ram e t e r r a m, w h ich is i n i t ia li ze d o n p o w e r - u p b y a n in t e r n a l b o o t - r o m. n e w val u es a r e wr i t t e n t o t h e p a ram e ter r a m usin g t h e co n t r o l p o r t . the val u es s t o r e d i n t h e p a ram e t e r r a m co n t r o l individ u al sig n a l p r o c es sin g b l o c ks, s u c h as ii r eq ualiza tio n f i l t ers, d y na mic s p r o c ess o rs, a u dio del a y s , a nd mixer le vels. a s a f e lo ad f e a t ur e al lo ws p a ra m e t e rs t o be tra n s p ar en tl y u p da ted w i t h out c a u s i n g cl i c k s on t h e output s i g n a l s . the ta rg et/s le w ram co n t a i n s 64 lo ca tio n s and can be us ed as c h a n n e l v o l u m e co n t r o ls o r f o r o t h e r p a ram e t e r u p da t e s. th ese ra m loca ti o n s tak e a ta r g e t val u e f o r a gi v e n pa ra m e t e r a n d ra m p t h e c u r r en t p a ram e t e r va l u e t o t h e ne w v a l u e usin g a sp e c if ie d t i m e c o n s t a n t and on e o f a s e le c t io n of lin e a r o r loga r i thmic c u r v es. the ad1940 has a s o p h is tic a t e d co n t r o l p o r t t h a t s u p p o r ts co m p let e r e ad/wr i t e ca p a b i l i ty o f al l m e m o r y l o ca tion s. f i v e co n t r o l r e g i s t ers (co r e , ram co nf igura t io n, s e r i al o u t p u t 0 t o 7, s e r i al o u t p u t 8 t o 15, a n d s e r i al in p u t) a r e p r o v ided t o o f f e r co m p lete con t rol o f t h e chi p s c o nf igur a t io n and s e r i a l m o d e s. h a n d s haki n g i s in c l ude d f o r ea se o f m e m o r y u p lo ads/do wn l o ads. the ad1940 con t a i n s eig h t in dep e n d en t da ta c a p t ur e cir c ui ts t h a t c a n b e p r og ra mme d t o t a p t h e sig n al f l o w o f t h e p r o c es s o r a t an y p o in t i n t h e ds p alg o r i t h m f l o w . six o f t h es e c a p t ur e d sig n als ca n be acces s e d b y r e adin g f r o m th e da t a c a p t ur e re g i ste r s t h rou g h t h e c o n t ro l p o r t . t h e re m a i n i n g t w o d a t a ca p t ur e r e g i s t ers ca n be us e d t o s e nd an y in t e r n al ca p t ur e d s i gn al t o a s t e r eo d i gi tal o u t p u t s i gn al o n p i n s d a t a _ o u t 7 f o r dr i v i n g ex ter n a l d a cs o r dig i t a l a n a l y z ers. the ad1940 has v e r y f l exi b le s e r i al da t a in p u t/o u t p u t p o r t s tha t al lo ws f o r g l ue le s s in t e r c o n n e c t io n t o a va r i e t y o f ad cs, d a c s , ge ne r a l - p u r p o s e d s p s , s / pdi f re c e ive r s , and s a m p l e r a te co n v er t e rs. th e ad1940 can be co nf igur ed in i 2 s, lef t -j us tif i e d , r i g h t- j u st if ie d , o r td m s e r i a l p o r t co m p a t ib le mo des. i t ca n s u p p o r t 16, 20, a nd 24 b i ts in al l m o des. th e ad1940 accep t s ser i al a u di o da t a i n ms b f i r s t a n d tw os co m p lem e n t f o r m a t . the ad1940 o p era t es f r o m a sin g le 2.5 v p o w e r s u p p l y . i t is fa b r ica t e d o n a sin g le m o n o l i t h ic in teg r a t e d circ ui t an d is h o us e d in a 48-l e ad l q fp p a cka g e fo r o p era t ion o v er t h e C40c t o +105c t e m p era t ur e r a n g e . 04607-0-003 28 28 dsp core data format: 5.23 (single precision) 10.46 (double precision) voltage regulator memory controllers control regisiter trap reg. safeload register serial control port mclk pll data memory 6k 28 target/slew ram 64 28 serial data/td m input group pll mode select master clock input spi i/o group resetb program ram 1536 40 boot rom boot rom parameter ram 1024 28 coefficient rom 512 28 2 2 4 4 2 2 serial data/ tdm output group regulator group f i gur e 7 . bl oc k diagr a m
ad1940 rev. 0 | page 11 of 32 pin functions table 10 shows the ad1940s pin numbers, names, and functions. input pins have a logic threshold compatible with ttl input levels and may be used in systems with 3.3 v or 5 v logic. sdata_in0 sdata_in1 sdata_in2/tdm_in1 sdata_in3/tdm_in0 serial data/tdm inputs. the serial format is selected by writing to bits 2:0 of the serial input port control register. sdata_in2 and sdata_in3 are dual-function pins that can be set to a variety of standard 2-channel formats or to tdm mode. two of these four pins (sdata_in2 and sdata_in3) can be used as tdm inputs in either dual-wire 8-channel mode or single-wire 16-channel mode (tdm_o0 only). in dual-wire 8-channel mode, channels 0-7 will be input on sdata_in3 and channels 8-15 on sdata_in2. in single-wire 16-channel mode, channels 0-15 will be input on sdata_in2. see the serial data input/output ports section for further explanation. lrclk_in bclk_in left/right and bit clocks for timing the input data. these input clocks are associated with the sdata_in0-3 signals. the input port is always in a slave configuration. these pins also function as frame sync and bit clock for the input tdm stream. sdata_out0/tdm_o0 sdata_out1 sdata_out2, sdata_out3 sdata_out4/tdm_o1 sdata_out5 sdata_out6 sdata_out7/dcsout serial data/tdm/data capture outputs. these pins are used for serial digital outputs. for non-tdm systems, these eight pins can output 16 channels of digital audio, using a variety of standard two-channel formats. they are grouped into two groups of four pins (0-3 and 4-7); each group can be indepen- dently set to any of the available serial modes, allowing the ad1940 to simultaneously communicate with two external devices with different serial formats. two of these eight pins (sdata_out0 and sdata_out4) can be used as tdm outputs in either dual-wire 8-channel mode or single-wire 16-channel mode (tdm_out0 only). in dual-wire 8-channel mode, channels 0-7 will be output on sdata_out0 and channels 8-15 on sdata_out4. see the serial data input/output ports section for further explanation. sdata_out7 can also be used as a data capture output, as described in the data capture registers section. lrclk_out0 bclk_out0 output clocks. this clock pair is used for outputs sdata_out0C3. in slave mode, these clocks are inputs to the ad1940. on power-up, these pins are set to slave mode to avoid conflicts with external master-mode devices. lrclk_out1 bclk_out1 output clocks. this clock pair is used for outputs sdata_out4C7. in slave mode, these clocks are inputs to the ad1940. on power-up, these pins are set to slave mode to avoid conflicts with external master-mode devices. mclk master clock input. the ad1940 uses a pll to generate the appropriate internal clock for the dsp core. an in-depth description of using the pll is found in the setting master clock/pll mode section. pll_ctrl0 pll_ctrl1 pll_ctrl2 pll mode control pins. the functionality of these pins is described in the setting master clock/pll mode section. cdata serial data input for the spi control port. cout serial data output for the spi port. this is used for reading back registers and memory locations. it is three-stated when an spi read is not active. cclk spi bit clock. this clock may either run continuously or be gated off in between spi transactions. clatch spi latch signal. this must go low at the beginning of an spi transaction and high at the end of a transaction. each spi transaction may take a different number of cclks to complete, depending on the address and read/write bit that are sent at the beginning of the spi transaction. adr_sel address select. this pin selects the address for the ad1940s communication with the control port. this allows two ad1940s to be used with a single clatch signal.
ad1940 rev. 0 | page 12 of 32 resetb active-low reset signal. after resetb goes high, the ad1940 goes through an initialization sequence where the program and parameter rams are initialized with the contents of the on- board boot roms. all registers are set to 0, and the data rams are also set to 0. the initialization is complete after 8,192 internal mclk cycles (referenced to the rising edge of resetb), which corresponds to 1,366 external mclk cycles if the part is in 256 f s mode. new values should not be written to the control port until the initialization is complete. vref voltage reference for regulator. this pin is driven by an internal 1.15 v reference voltage. vdrive drive for external transistor. the base of the voltage regulators external pnp transistor is driven from this pin. vsense digital power level. the voltage level on the vdd pins is sensed on vsense. vsense should be tied to vdd. vsupply main supply voltage level. this pin is tied to the boards main voltage supply. this is usually 3.3 v or 5 v. vdd (4) digital vdd for core. 2.5 v nominal. gnd (4) digital ground. pll_vdd supply for ad1940 pll. 2.5 v nominal. pll_gnd pll ground. odvdd (3) vdd for all digital outputs. the high levels of the digital output signals are set on this pin. the voltage can range from 2.5 v to 5.0 v. invdd peak input voltage level. the highest voltage level that the input pins will see should be connected to invdd. this is to protect the chip inputs from voltage overstress. the voltage on this pin must always be at or above the level of odvdd.
ad1940 rev. 0 | page 13 of 32 signal processing ove r vi e w the ad1940 is desig n e d t o p r o v ide al l sig n al p r o c es sin g f u nc t i ons c o m m on ly u s e d i n s t e r e o or m u lt i c h a n n e l pl a y b a c k sys t em s. th e sig n al p r o c es sin g f l o w is s e t b y usi n g th e ad i- s u p p lie d s o f t war e , whic h al lo ws g r a p hical e n tr y a nd r e al-time co n t r o l o f al l sig n al p r o c es sin g f u n c tio n s . m a n y o f th e sig n al p r o c es sin g f u n c tio n s a r e co de d usin g f u l l , 56-b i t do ub le-pr e cisio n a r i t h m et ic. t h e i n p u t and o u tp u t w o r d len g t h s a r e 24 b i ts. f o ur ext r a he adr o o m b i ts a r e us e d i n t h e pro c e s s o r to a l l o w i n te r n a l g a i n s up to 2 4 db w i t h out cl i p pi ng . a d d i t i o n a l ga i n s ca n b e achi e v e d b y ini t ia l l y s c a l in g do w n t h e in p u t sig n al in th e sig n al f l o w . the sig n al p r o c es sin g b l o c ks can b e a r ra n g ed in a c u s t om p r o- g r a m tha t can b e lo aded t o t h e ad1940 s r a m. the a v a i lab l e sig n al p r o c es sing b l o c ks a r e expla i n e d in t h e fol l o w in g s e c t ion s . numeric forma t s i t is co mm o n in ds p sys t em s t o us e a s t anda r d ize d m e t h o d o f s p e c if ying n u mer i c fo r m a t s. f r ac tio n al n u m b e r sys t em s a r e s p e c if ie d b y a n a.b fo r m a t , w h er e a is t h e n u m b er o f b i ts t o t h e lef t o f th e decimal p o in t and b is th e n u m b er o f b i ts t o t h e r i g h t of t h e d e c i m a l p o i n t . the ad1940 us es th e s a me n u m e r i c f o r m a t f o r bo th t h e co ef f i - cien t va l u es (stor e d in t h e p a r a m e ter r a m) and t h e sig n a l da t a val u es. the fo r m a t is as fol l o w s: nume ric a l f o rmat: 5. 23 r a n g e: C16.0 t o (+16.0 ? 1 ls b) ex a m p l e s : 1000000000000000000000000000 = C16.0 1110000000000000000000000000 = C4.0 1111100000000000000000000000 = C1.0 1111111000000000000000000000 = C0.25 1111111111111111111111111111 = (1 ls b be l o w 0.0) 0000000000000000000000000000 = 0.0 0000001000000000000000000000 = 0.25 0000100000000000000000000000 = 1.0 0010000000000000000000000000 = 4.0 0111111111111111111111111111 = (16.0 C 1 ls b). the s e r i al p o r t accep t s u p t o 24 b i ts o n t h e in p u t an d is sig n - ext e n d e d t o t h e f u l l 28 b i ts o f t h e co r e . this al lo ws in t e r n al g a i n s of up to 2 4 db w i t h out e n c o u n te r i ng i n te r n a l cl i ppi ng . a d i gi tal c l i p pe r ci r c ui t i s used bet w een t h e o u t p u t o f th e d s p c o r e a n d th e s e ri a l o u t p u t p o rt s ( s e e f i g u r e 8 ) . t h i s c l i p s t h e t o p f o ur b i ts o f th e sig n al t o p r o d u c e a 24-b i t o u t p u t wi th a ra n g e o f 1.0 (min us 1 ls b) t o C1.0. 4-bit sign extension data in serial port 1.23 5.23 signal processing (5.23 format) digital clipper 5.23 1.23 04607-0-005 f i gure 8. nu me ri c pr ec is i o n and c l i p pi ng struc t ure progr a mm ing on p o w e r - u p , th e ad1940 s def a u l t p r og ra m p a s s es the un p r o- ces s e d in p u t sig n als t o th e o u t p u t s b u t the o u t p u t s com e u p m u te d b y def a u l t (s e e p o w e r - u p s e q u e n ce s e c t i o n). ther e a r e 1,536 in s t r u c t io n c y c l es p e r a u dio s a m p le , r e s u l t in g in a n in ter - nal c l o c k ra te o f 73.728 mh z (fo r f s = 48 khz). this dsp r u n s in a s t r e am-o r i en ted ma nner , m e anin g al l 1,536 ins t r u c t io n s a r e exec u t ed each s a m p le p e r i o d . th e ad1940 ma y als o be s e t u p t o accep t dou b le o r q u ad-s p eed in p u t s b y r e d u ci n g t h e n u m b er o f in st r u c t io n s /s am ple , w h ich can b e s e t in t h e co r e c o n t ro l re g i ste r . the p a r t ca n b e p r og ra mm e d e a sil y usin g g r a p hical t o ols p r o- vide d b y ana l o g d e vices. n o k n o w le dge o f wr i t in g dsp co de i s n e ed ed t o p r o g r a m t h i s pa rt . t h e u s e r c a n s i m p l y c o n n e c t g r a p hica l b l o c k s such as b i quad f i l t ers, d y na mic s p r o c ess o rs, mixers, a n d del a y s in a sig n a l f l o w s c h e m a t i c, com p i l e t h e desig n , an d lo ad t h e p r o g r a m and p a r a m e ter f i les in to t h e ad1940 s p r og ra m ram t h r o ug h the co n t r o l p o r t . s i g n al p r o c es sin g b l o c ks a v a i lab l e i n t h e p r o v i d e d l i b r a r ies in cl ude ? sin g le- and do ub le-p r e cisio n b i q u ad f i lters ? m o no a n d m u lt i c h a n n el dy n a m i c s pro c e s s o r s ? mixers and splitters ? t o ne a n d noi s e ge ne r a tor s ? fi r s t - o r d e r f i lt e r s ? f i xe d an d v a r i ab le ga in ? rms lo ok-u p t a b l es ? lo u d n e s s ? de la y ? s t e r eo e n h a n c em en t (p ha t s t e r eo?) ? i n te r p ol a t ors a nd d e c i ma tors m o r e b l oc k s a r e al w a ys i n d e ve lo p m en t . a n alog de vi ces also p r o v ides p r o p r i et a r y a n d t h ir d- p a r t y a l go r i t h m s fo r a p plica t io ns s u c h a s ma tri x d e codi n g , b a s s enh a n c em en t , a n d s u rr o u n d vir t u a li zers. ple a s e con t ac t adi fo r info r m a t io n a b o u t lic e n s in g t h es e alg o r i t h ms.
ad1940 rev. 0 | page 14 of 32 control port overview the ad1940 has many different control options that can be set through an spi interface. most signal processing parameters are controlled by writing new values to the parameter ram using the control port. other functions, such as mute and input/ output mode control, are programmed by writing to the control registers. the control port is capable of full read/write operation for all of the memories and registers. all addresses may be accessed in both a single-address mode or a burst mode. a control word consists of the chip address, the register/ram subaddress, and the data to be written. the data can be variable in its byte width. the first byte of a control word (byte 0) contains the 7-bit chip address plus the r/w bit. the next two bytes (bytes 1 and 2) together form the subaddress of the memory or register location within the ad1940. this subaddress needs to be two bytes because the memories within the ad1940 are directly addressable, and their sizes exceed the range of single-byte addressing. all subsequent bytes (bytes 3, 4, etc.) contain the data, such as control port data or program or parameter data. the ad1940 has several mechanisms for updating signal processing parameters in real time without causing pops or clicks. in cases where large blocks of data need to be down- loaded, the output of the dsp core can be halted (using bit 9 of the core control register), new data loaded, and then restarted. this is typically done during the booting sequence at start-up or when loading a new program into ram. in cases where only a few parameters need to be change d, they can be loaded without halting the program. to avoid unwanted side effects while loading parameters on the fly, the sigmadsp provides the safeload registers. the safeload registers can be used to buffer a full set of parameters (e.g. the five coefficients of a biquad) and then transfer these parameters into the active program within one audio frame. the safeload mode uses internal logic to prevent contention between the dsp core and the control port. the spi port uses a 4-wire interface, consisting of clatch, cclk, cdata, and cout signals. the clatch signal goes low at the beginning of a transaction and high at the end of a transaction. the cclk signal latches cdata on a low-to-high transition. cout data is shifted out of the ad1940 on the falling edge of cclk and should be clocked into the receiving device, such as a microcontroller, on cclks rising edge. the cdata signal carries the serial input data, and the cout signal is the serial output data. the cout signal remains three- stated until a read operation is requested. this allows other spi- compatible peripherals to share the same readback line. all spi transactions follow the same basic format, shown in table 11. a timing diagram is shown in figure 4. all data written should be msb-first. table 11. generic spi word format byte 0 byte 1 byte 2 byte 3 byte 4, etc. chip_adr [6:0], r/ w 0000, adr[11:8] adr[7:0] data data chip address r/ w the first byte of an spi transaction includes the 7-bit chip address and a r/ w bit. the chip address is set by the adr_sel pin. this allows two ad1940s to share a clatch signal, yet still operate independently. when adr_sel is low, the chip address is 0000000; when it is high, the address is 0000001. the lsb of this first byte determines whether the spi transaction is a read (logic level 1) or a write (logic level 0). ram/register address the 12-bit ram/register address word is decoded into a location in one of the memories or registers. data bytes the number of data bytes varies according to the register or memory being accessed. in burst write mode, an initial address is given followed by a continuous sequence of data for consecutive memory/register locations. the detailed data format diagram for continuous-mode operation is given in the control port read/write data formats section. a sample timing diagram for a single spi write operation to the parameter ram is shown in figure 9. a sample timing diagram of a single spi read operation is shown in figure 10. the cout pin goes from three-state to driven at the beginning of byte 3. in this example, bytes 0 to 2 contain the addresses and r/w bit, and subsequent bytes carry the data. the exact formats for specific types of writes are shown in table 21 to table 30.
ad1940 rev. 0 | page 15 of 32 clatch cclk cdata byte 0 byte 1 byte 2 byte 3 04607-0-006 f i gure 9. s a mple of spi write for m at ( s ingle - w r ite m o de) 04607-0-007 clatch cclk cdata cout byte 0 byte 1 hi-z data data data hi-z f i gure 10. s a mp le of spi re ad f o r m a t (singl e - read mod e )
ad1940 rev. 0 | page 16 of 32 rams and registers table 12. control port addresses spi address register name read/write word length 0C1023 (0x0000C0x03ff) parameter ram write: 4 bytes, read: 4 bytes 1024C2559 (0x0400C0x09ff) program ram write: 5 bytes, read: 5 bytes 2560C2623 (0x0a00C0x0a3f) target/slew ram write: 5 bytes, read: n/a 2624C2628 (0x0a40C0x0a44) parameter ram data safeload registers 0C4 write: 5 bytes, read: n/a 2629C2633 (0x0a45C0x0a49) parameter ram indirect address sa feload registers 0-4 write: 2 bytes, read: n/a 2634C2639 (0x0a4aC0x0a4f) data capture registers 0C5 (control port readback) write: 2 bytes, read: 3 bytes 2640C2641 (0x0a50C0x0a51) data capture registers (dig ital output) write: 2 bytes, read: n/a 2642 (0x0a52) dsp core control register write: 2 bytes, read: 2 bytes 2643 (0x0a53) ram configuration regist er write: 1 byte, read: 1 byte 2644 (0x0a54) serial output control register 1 (c hannels 0C7) write: 2 bytes, read: 2 bytes 2645 (0x0a55) serial output control register 2 (c hannels 8C15) write: 2 bytes, read: 2 bytes 2646 (0x0a56) serial input control regi ster write: 1 byte, read: 1 byte table 13. ram read/write modes memory size spi address range read write burst mode available? write modes parameter ram 1024 28 0C1023 (0x0000C0x03ff) yes yes yes direct write 1 safeload write program ram 1536 40 1024C2559 (0x0400C0x09ff) yes yes yes direct write 1 target/slew ram 64 34 2560C2623 (0x0a00C0x0a3f) no yes (via safeload) yes 2 safeload write 1 dsp core should be shut down first to avoid clicks/pops. 2 the target/slew rams need to be written through the safeload registers. safeload writes may be done in either single-write or burst-mode. control port addressing table 12 shows the addressing of the ad1940s ram and register spaces. the address space encompasses a set of registers and three rams: one each for holding signal processing parameters, holding the program instructions, and ramping parameter values. the program and parameter rams are initialized on power-up from on-board boot roms. table 13 shows the sizes and available writing modes of the parameter, program, and target/slew rams. parameter ram contents the parameter ram is 28 bits wide and occupies addresses 0 to 1023. the parameter ram is initialized to all 0s on power-up. the data format of the parameter ram is twos complement 5.23. this means that the coefficients may range from +16.0 (minus 1 lsb) to C16.0, with 1.0 represented by the binary word 0000100000000000000000000000. options for parameter updates the parameter ram can be written and read using one of the two following methods. 1. direct read/write . this method allows direct access to the program and parameter rams. this mode of operation is normally used during a complete new load of the rams, using burst-mode addressing. the clear registers bit in the core control register should be set to 0 using this mode to avoid any clicks or pops in the outputs. note that it is also possible to use this mode during live program execution, but since there is no handshaking between the core and the control port, the parameter ram will be unavailable to the dsp core during control writes, resulting in clicks and pops in the audio stream. 2. safeload writes. up to five safeload registers can be loaded with address/data intended for the parameter ram. the data is then transferred to the requested address when the ram is not busy. this method can be used for dynamic updates while live program material is playing through the ad1940/ad1941. for example, a complete update of one biquad section can occur in one audio frame, while the ram is not busy. this method is not available for writing to the program ram or control registers. the following section discusses these two options in more detail.
ad1940 rev. 0 | page 17 of 32 recommended program/parameter loading procedures when writing large amounts of data to the program or para- meter ram in direct write mode, the processor core should be disabled to prevent unpleasant noises from appearing at the audio output. the ad1940 contains several mechanisms for disabling the core. if the loaded program does not use the target/slew ram as the main system volume control (for example, the default power-up program) 1. assert bit 9 (low to assertdefault setting) and bit 6 (high to assert) of the core control register. this zeroes the accumulators, the serial output registers, and the serial input registers. 2. fill the program ram using burst mode writes. 3. fill the parameter ram using burst mode writes. 4. assert bit 7 of the core control register to initiate a data- memory clear sequence. wait at least 100 s for this sequence to complete. this bit is automatically cleared after the operation is complete. 5. deassert bit 9 and bit 6 of the core control register to allow the core to begin normal operation if the loaded program does use the target/slew ram as the main system volume control: 1. assert bit 12 of the core control register. this begins a volume ramp-down, with a time constant determined by the upper bits of the target ram. wait for this ramp-down to complete (the user may poll bit 13 of the core control register, or simply wait for a given amount of time). 2. assert bit 9 (low to assert) and bit 6 (high to assert) of the core control register. this zeroes the accumulators, the serial output registers, and the serial input registers. 3. fill the program ram using burst-mode writes. 4. fill the parameter ram using burst-mode writes. 5. assert bit 7 of the core control register to initiate a data- memory clear sequence. wait at least 100 s for this sequence to complete. this bit is automatically cleared after the operation is complete. 6. deassert bit 9 and bit 6 of the core control register. 7. if the newly loaded program also uses the target/slew ram, deassert bit 12 of the core control register to begin a volume ramp-up procedure. target/slew ram the target/slew ram is a bank of 64 ram locations, each of which can each be set to autoramp from one value to a desired final value in one of four modes. summary the target/slew ram is used by the dsp when a program is loaded into the program ram that uses one or more locations in the slew ram to access internal coefficient data. typically, these coefficients are used for volume controls or smooth cross- fading effects, but may be used to update any value in the para- meter ram. each of the 64 locations in the slew ram are linked to corresponding locations in the target ram. when a new value is written to the target ram using the control port, the corresponding slew ram location begins to ramp toward the target. the value is updated once per audio frame (lrclk period). the target ram is 34 bits wide. the lower 28 bits contain the target data in 5.23 format for the linear and exponential (constant db and rc-type) ramp types. for constant time ramping, the lower 28 bits contain 16 bits in 2.14 format and 12 bits to set the current step. the upper six bits are used to determine the type and speed of the ramp envelope in all modes. the format of the data write for linear and exponential formats is shown in table 14. table 15 shows the data write format for the constant time ramping. data can only be written to the target/slew ram using the safeload registers as described in the safeload registers section. a mute slew ram bit is included in the core control register to simultaneously set all the slew ram target values to 0. this is useful for implementing a global multichannel mute. when this bit is deasserted, all slew ram values will return to their original pre-muted states. table 14. linear, constant db, and rc-type ramp data write byte 0 byte 1 bytes 2C4 000000, curve_type[1:0] time_const[3:0], data[27:24] data[23:0] table 15. constant time ramp data write byte 0 byte 1 bytes 2C4 000000, curve_type[1:0] update_step[0], #_of_steps[2:0], data[15:12] data[11:0], reserved[11:0]
ad1940 rev. 0 | page 18 of 32 the fo ur ra m p i n g c u r v e typ e s ar e 1. l i n e a r v al ue sle w s t o ta rg et usin g a f i xe d s t ep size . 2. c o n s t a n t db v al ue s l e w s t o t a rg et usin g t h e c u r r en t val u e t o calc u l a t e t h e s t ep si ze . th e r e s u l t in g c u r v e has a co n s t a n t r i s e a nd de c a y w h en m e asur e d in d b . 3. r c -ty p ev a l u e s l e w s t o t a rg et usin g t h e dif f er en c e b e tw e e n t a rg et a nd c u r r en t val u es t o calc u l a t e t h e st ep si ze , p r o d ucin g a sim p le r c typ e c u r v e fo r r i sin g a nd fal l ing. 4. c o n s ta n t t i m e v al ue s l e w s t o th e ta r g e t in a f i x e d n u m b er o f s t eps in a lin e a r fas h io n. th e con t r o l p o r t m u t e has n o a f f e c t on this typ e . table 16 target/slew ram ra mp t y pe settings s e t t i n g r a m p t y p e 0 0 l i n e a r 0 1 c o nstan t d b 1 0 r c - t y p e 1 1 c o nstan t t i m e the fol l o w in g s e c t io n s det a i l ho w t h e con t r o l p o r t wr i t es t o t h e ta r g e t / s lew ram t o co n t r o l th e tim e co n s ta n t a n d ra m p t y pe pa r a m e t e r s . r a mp t y p e s 1C 3: linea r , c o ns ta nt db , rc- t y p e (34-bit w r ite) the t a rg et w o r d fo r t h e f i rs t t h r e e ra m p typ e s is b r ok e n u p i n t o thr e e p a r t s. th e 34-b i t co mmand is wr i t ten wi th six leading 0s t o ext e nd t h e da t a wr i t e t o f i v e b y t e s. the p a r t s o f t h e t a rg et r a m wr i t e a r e des c r i b e d b e lo w . ? r a m p t y p e (2 b i ts) ? t i m e c o n s ta n t (4 b i ts) 0000 = f a s t es t 1111 = s l o w es t ? da t a (28 b i ts): 5 . 23 f o r m a t r a mp t y p e 4 c o nsta nt t i me (34-bit w r i t e) the t a rg et w o r d fo r t h e co n s t a n t t i m e ra m p typ e is wr i t t e n i n f i ve p a r t s, wi t h t h e 34- b i t co m m a nd a g ain wr i t te n w i t h s i x le adin g zer o s t o ext e nd t h e da t a wr i t e t o f i v e b y tes. th e p a r t s o f t h e con s t a n t t i m e t a rg et r a m wr i t e a r e des c r i b e d b e lo w . ? r a m p t y p e (2 b i ts). ? u p da t e s t ep (1 b i t). s e t t o 1 w h en n e w t a rg et is lo ade d t o t r ig g e r s t ep val u e u p da t e . v a l u e i s a u t o ma t i cal l y r e s e t a f t e r t h e st ep val u e is u p da te d . ? n u m b er o f s t ep s (3 b i ts). the n u m b er o f s t eps t h a t i t t a k e s t o s l e w t o t h e t a rg et val u e is s e t b y t h es e t h r e e b i ts, wi t h t h e n u m b er o f s t eps eq ual t o 2 3-b i t s e t t i n g + 6 . 000 = 64 001 = 128 010 = 256 011 = 512 100 = 1024 101 = 2048 110 = 4096 111 = 8196 ? da t a (16 b i ts). 2.14 f o r m a t . ? res e r v e d (12 b i ts). w h e n wr i t in g t o t h e r a m, t h es e b i ts s h o u ld al l be s e t t o 0. t a rget a n d slew r a m initialization on r e s e t, t h e t a rg et/s l e w r a m i n i t iali zes t o p r e s et val u es. th e t a rget r a m in i t ia li zes t o a li n e ar ra m p ty p e w i t h a t i me co n s tan t o f 5 and the da t a s e t t o 1.0. th e s l e w r a m ini t ial i zes to a val u e o f 1.0. th es e defa u l ts g i v e a f u l l -s c a le (1.0 t o 0.0) ra m p time o f 21.3 m s . linea r up dat e math l i ne ar m a t h i s t h e a d d i t i on or s u bt r a c t i o n of a c o nst a n t v a lu e ( s te p ) . th e e q u a t i on to de s c r i b e t h i s ste p s i z e i s () 20 10 13 5 2 2 ? = tconst step t h e r e s u l t o f th e eq ua ti o n i s n o rm ali z e d t o 5. 23 da ta f o rm a t . this g i v e s a time co n s tan t ran g e f r o m 6.75 m s to 213.4 m s . (C60 db r e l a t i ve to 0 db f u l l s c a l e). an ex a m ple o f t h is k i nd o f u p da te is sh o w n in f i gur e 11. al l s l ew r a m f i gur e exa m p l es, e x ce p t th e se co n d co n s ta n t tim e p l o t , s h o w a ra m p f r o m C 80 db t o 0 d b (full sca l e ) . all f i gur e s e x ce p t th e co n s ta n t tim e p l o t s (f igur e 14 a nd f i gur e 15) us e a time co n s ta n t of 0x7 (0x0 bein g t h e fas t est an d 0 x f b e in g t h e s l ow es t). time (ms) ou tpu t level ( v ) 1 0.4 0.6 0.8 0.2 0 ?0.4 ?0.2 ?1 ?0.8 ?0.6 01 0 2 0 3 0 04607-0-017 f i g u re 11. sl ew r a m line ar u p dat e p l ot c o nsta nt db a n d r c -t yp e (ep onential) up dat e math e x p o n e n t ia l ma t h is accom p lishe d b y shif t s an d adds wi t h a ra n g e f r o m 6.1 m s t o 1.27 s (C6 0 db r e l a ti v e t o 0 db f u l l s c ale). w h en t h e ram p typ e is s e t t o 01 (co n st an t db), e a ch step siz e is s e t t o t h e c u r r en t val u e in t h e sle w da t a . w h e n t h e ram p typ e b i ts a r e s e t t o 10 (r c typ e ), t h e st ep sizes a r e e q u a l t o t h e dif f er en ce b e twe e n t h e val u es i n t h e t a rg et r a m a nd s l e w r a m. f i g u re 1 2 an d fi g u re 1 3 show e x am pl e s of t h i s t y p e of t a r g e t / s l e w r a m r a m p i n g . a d e c a y i ng pl ot of b o t h t h e co n s t a n t db and rc- t y p e r a m p s w o u l d b e a mir r o r ima g e o f wha t is sh o w n in f i gur e 12.
ad1940 rev. 0 | page 19 of 32 04607-0-018 time (ms) ou tpu t level ( v ) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 01 0 52 0 15 30 25 35 f i g u re 12. sl ew r a m cons tant db u p dat e plot 04607-0-019 time (ms) ou tpu t level ( v ) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 01 0 2 0 3 0 f i g u r e 1 3 . s l e w ra m rc - t y p e u p d a t e p l o t 04607-0-020 time (ms) ou tpu t level ( v ) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 01 0 2 0 3 0 f i gure 14 sle w r a m constant ti me update pl ot, f u ll s c a l e 04607-0-021 time (ms) ou tpu t level ( v ) 1 0.8 0.6 0.4 0.2 0 ?0.6 ?0.4 ?0.2 ?0.8 ?1 01 0 2 0 3 0 f i gure 15 sle w r a m c o nstant ti me u p date pl ot , h a lf s c a l e c o nsta nt t i me up dat e math c o n s ta n t tim e m a th i s acco m p li s h e d b y a d di n g a s t e p v a l u e tha t i s cal c ul a t ed a f t e r ea c h n e w ta rg e t i s l o a d ed . th e e q ua ti o n f o r t h is st ep si ze is ste p = ( ta r g e t d a t a ? sl ew d a ta )/( n u m b er o f s t eps ) f i g u re 1 4 show s a pl ot of t h e t a r g e t / s l e w r a m op e r a t i n g i n co n s tan t time m o de . f o r this exa m p l e , 128 s t eps a r e us ed t o r e a c h th e ta r g e t v a l u e . t h i s t y pe o f ra m p i n g w i ll tak e a f i x e d amou n t of t i me f o r a g i ve n n u mb e r of ste p s , re g a rd l e ss of t h e dif f er en ce i n t h e ini t ial s t a t e and t h e t a rg et val u e . f i gur e 15 show s a pl ot of a c o nst a n t t i me r a m p f r om C 8 0 d b to C 6 d b (half s c ale) usin g 128 s t eps. y o u ca n s e e tha t t h e ra m p ta k e s t h e s a me am o u n t o f time as t h e p r e v io us ra m p f r o m C80 db t o 0 db . safel o ad r e gisters m a n y a p pli c a t ion s r e q u ir e r e a l -t ime co n t r o l o f sig n a l p r o c essin g p a r a m e t e r s , s u c h a s fi l t e r c o e ffi c i e n t s , m i x e r g a i n s , m u l t i - ch an nel v i r t u a l i z i ng p a r a me te r s , or dy n a m i c s pr o c e s s i ng c u r v e s . t o pre v e n t i n st a b i l it y f r om o c c u r r i ng , a l l of t h e p a r a me t e r s of a b i q u ad f i l t er m u s t b e u p da t e d a t th e s a me tim e . o t h e r w is e , th e f i l t er co u l d exe c u t e fo r o n e o r t w o a u dio f r a m e s w i t h a mix o f old a nd n e w co ef f i cien ts. this mix co u l d c a us e tem p o r a r y in st ab i l i t y , le adi n g t o t r a n sien ts t h a t co u l d t a k e a lo n g t i m e t o dec a y . t o e l imina t e this p r ob lem, th e ad1940 lo ads a s e t o f 10 r e g i s t ers in t h e con t r o l p o r t (f i v e fo r 28-b i t p a ra m e ters, a n d a n o t h e r f i ve fo r indir e c t ly addr e s sin g t h e t a rget / s le w r a ms) wi t h t h e desir e d p a r a m e ter o r t a rget/sle w r a m addr ess and da t a . f i ve r e g i s t ers a r e us e d b e c a us e a b i quad f i l t er us es f i v e co ef f i cien ts, an d i t is desira b l e to b e a b le t o do a co m p lete b i quad up da te i n on e t r a n s a c t ion. t h e s a felo ad r e g i sters can b e us e d t o u p da t e ei t h er t h e p a ram e t e r r a m o r t a rg et/s le w r a m val u es. on ce t h es e r e g i s t ers a r e lo ade d , t h e a p p r o p r i a t e ini t i a te sa f e tra n sf er b i t (th e r e a r e sep a r a t e b i ts f o r p a ra m e t e r an d t a r g e t / s l e w l o a d s ) i n t h e c o re c o n t ro l re g i ste r s h ou l d b e s e t to ini t ia t e t h e lo adin g in t o r a m. p r og ra m len g th s s h o u ld b e limi ted t o 1,531 c y c l es (1,536 ? 5) t o en s u r e tha t th e sig m ads p is a b le t o p e r f o r m the s a f e lo ads. i t ca n be g u a r an t e e d tha t t h e s a f e lo ad wil l ha v e o c c u r r ed wi t h in on e l r cl k p e r i o d (21 s a t f s = 48 kh z) o f th e ini t ia t e s a f e tra n sf er b i t being s e t. t h e sa f e l o a d l o gi c a u t o ma tic a ll y se n d s o n l y t h ose sa f e l o a d r e gi s - t e rs t h a t ha v e b e en wr i t t e n t o si n c e t h e last s a fe l o ad o p era t ion. f o r e x am pl e, i f on ly t w o p a r a m e te r s are to b e s e n t , on ly t w o of t h e f i v e s a fe lo ad r e g i s t ers m u s t b e wr i t t e n t o . w h e n t h e ini t ia t e s a f e t r ans f e r bit ( i n t h e c o re c o n t ro l re g i ste r ) i s a s s e r t e d , on ly t h os e t w o r e g i s t ers a r e s e n t ; t h e o t h e r t h r e e r e g i s t ers a r e n o t s e n t t o th e r a m an d ca n stil l h o ld old o r in valid da t a .
ad1940 rev. 0 | page 20 of 32 table 17. data capture co ntrol registers (2634C2641) register bits function 12:2 11-bit program counter address 1:0 register select 00 = mult_x_input 01 = mult_y_input 10 = mac_output 11 = accum_fback data capture registers the ad1940s data capture feature allows the data at any node in the signal processing flow to be sent to one of six control port-readable registers or to a serial output pin. this can be used to monitor and display information about internal signal levels or compressor/limiter activity. the ad1940 contains six indepe ndent control port-readable data capture registers, and two digital output capture registers. the digital output registers are output on sdata_out7 when the data capture serial out enable bit (bit 14) is set in serial output control register 2. these registers are useful when debugging the signal processing flow. for each of the data capture registers, a capture count and a register select must be set. the capture count is a number between 0 and 1,535 that corresponds to the program step number where the capture will occur. the register select field programs one of four registers in the dsp core that will be transferred to the data capture register when the program counter equals the capture count. the register select field selections are shown in table 18. table 18. data capture output register select setting register 00 multiplier x input (mult_x_input) 01 multiplier y input (mult_y_input) 10 multiplier-accumulator output (mac_out) 11 accumulator feedback (accum_fback) the capture count and register select bits are set by writing to one of the eight data capture registers at register addresses 2634: control port data capture setup register 0 2635: control port data capture setup register 1 2636: control port data capture setup register 2 2637: control port data capture setup register 3 2638: control port data capture setup register 4 2639: control port data capture setup register 5 2640: digital out data capture setup register 0 2641: digital out data capture setup register 1 the captured data is in 5.19 tw os complement data format for all eight register select fields. the four lsbs are truncated from the internal 5.23 data-word. the data that must be written to set up the data capture is a concatenation of the 11-bit program count index with the 2-bit register select field. the capture count and register select values that correspond to the desired point to be monitored in the signal processing flow can be found in a file output from the program compiler. the capture registers can be accessed by reading from locations 2634 to 2639 (for control port capture registers). the format for reading and writing to the data capture registers can be seen in table 27 and table 28. table 19. dsp core control register (2642) register bits function 15:14 reserved 13 slew ram muted (read only) 12 mute slew ram, all locations 11 reserved, set to 0 10 use serial out lrclk for output latch 9 clear internal registers to all 0s, active low 8 force multiplier to 0 7 inititalize data memory with 0s 6 mute serial input port 5 initiate safe transfer to target ram 4 initiate safe transfer to parameter ram 3:2 input serial port to sequencer sync 00 = lrclk 01 = lrclk/2 10 = lrclk/4 11 = lrclk/8 1:0 program length 00 = 1536 01 = 768 10 = 384 11 = 192 dsp core control register the controls in this register set the operation of the ad1940s dsp core. bits 6 to 9 can be set to initiate a shutdown of the core. the output is muted when this is performed, so it is best to first assert the mute slew ram bit (if slew ram locations are used as volume controls in the program) to avoid a click or pop when shutdown is asserted. slew ram muted (bit 13) this bit is set to 1 when the slew ram mute operation has been completed. this bit is read-only and is automatically cleared by reading. mute slew ram, all locations (bit 12) setting this bit to 1 initiates a mute of all 64 slew ram locations. when reset to 0, all ram locations return to their previous state. this bit is only functional if slew ram locations are used in the custom program design. keep in mind that the ad1940s default program does not use any slew ram volume controls, so this bit has no effect in that case. the mute operation is identical to writing all 0s to the data portion of the target ram, and therefore the time constant and linear/ exponential curve selection is determined by the bits that have
ad1940 rev. 0 | page 21 of 32 been previously written to the high bits of the target ram. use serial out lrclk for output latch (bit 10) normally, data is transferred from the dsp core to the serial output registers at the end of each program cycle. in some cases (e.g., when output sample rate is set to some multiple of input sampling rate), it is desirable to transfer the internal core data multiple times during a single input audio sample period. set- ting this bit to 1 allows the output lrclk signal to control this data transfer rather than the internal end-of-sequence signal. operation in this mode may require custom assembly-language coding in the adi graphical tools. clear registers to all zeros (bit 9) setting this bit to 0 sets the contents of the accumulators and serial output registers to 0. like the other register bits, this one powers up to 0. this means the ad1940 powers up in clear mode and will not pass a signal until a 1 is written to this bit. this is intended to prevent noises from inadvertently occurring during the power-up sequence. force multiplier to zero (bit 8) when this bit is set to 1, the input to the dsp multiplier is set to 0, which results in the multiplier output being 0. this control bit is included for maximum flexibility, and is normally not used. initialize data memory with zeros (bit 7) setting this bit to 1 initializes all data memory locations to 0. this bit is cleared to 0 after the operation is complete. this bit should be asserted after a complete program/parameter download has occurred to ensure click-free operation. zero serial input port (bit 6) when this bit is set to 1, the 16 serial input channels are forced to all 0s. initiate safe transfer to target ram (bit 5) setting this bit to 1 initiates a safeload transfer to the target/slew ram. this bit is cleared when the operation is completed. there are five safeload register pairs (address/data); only those registers that have been written since the last safeload event are transferred. address 0 corresponds to the first target ram location. initiate safe transfer to parameter ram (bit 4) setting this bit to 1 initiates a safeload transfer to the parameter ram. this bit is cleared when the operation is completed. there are five safeload registers pairs (address/data); only those registers that have been written since the last safeload event are transferred. address 0 corresponds to the first parameter ram location. input serial port to sequencer sync (bits 3:2) normally, the internal sequencer is synchronized to the incoming audio frame rate by comparing the internal program counter with the edge of the lrclk input signal. in some cases the ad1940 may be used to decimate an incoming signal by some integer factor. in this case, it is desirable to synchronize the sequencer to a submultiple of the incoming lrclk rate so more than one audio input sample is available to the program during a single audio output frame. for example, if these bits are set to 01 (lrclk/2), a 96 khz input can be used with a 48 khz output, allowing two consecutive input samples to be processed during a single audio output frame. operation in this mode may require custom assembly-language coding in the adi graphical tools. program length (bits 1:0) 96 khz and 192 khz modes these bits set the length of the internal program. the default program length is 1,536 instructions for f s = 48 khz, but the program length can be shortened by factors of 2 to accom- modate sample rates higher than 48 khz. for f s = 96 khz the program length should be set to 768 (01), and the length should be set at 384 steps (10) for f s = 192 khz. a program length of 192 steps is available, but will not be commonly used. low power mode this setting can also be used to reduce the power consumption of the ad1940. if the program length is set to 768 steps and f s = 48 khz, instead of 96 khz, then the power consumption of the part will be cut in approximately half. correspondingly, when the program length is set to 384 steps with f s = 48 khz the power consumption will be about ? of what it is in normal operation with 1,536 program steps and f s = 48 khz. table 20. ram configuration register (2643) register bits function 7:4 reserved 3:0 ram modulo, 1 lsb corresponds to 512 locations, max = 0b1100 (6 k) ram configuration register the ad1940 uses a modulo ram addressing scheme to allow filters and other blocks to be coded easily without requiring filter data to be explicitly moved during the filtering operation. this is accomplished by adding the contents of an address offset counter to the actual base address supplied in the ad1940s core. this address offset counter is incremented automatically at the audio frame rate. this method works well for most audio applications that involve filtering. in some cases, however, it is desirable to have direct access to the ram, bypassing the autoincrementing address offset counter. for this reason, the data memory in the ad1940 can be divided into modulo and nonmodulo portions by programming the ram configuration register (table 20). the address range from 0 to 512 (ram configuration register contents) is treated as modulo memory with autoincrementing address offset registers. the maximum setting of this register is the full size of the ram, or 6,144 (6 k) data words. note that
ad1940 rev. 0 | page 22 of 32 addresses in this range automatically wrap around the modulo boundary as set by the register. this feature is not normally used with adi-supplied blocks. for normal operation, this register may be left in its default state, which sets up the entire ram to use the autoincrement feature. this feature is included for maximum programming flexibility and may be used in the case of specialized software development. control port read/write data formats the read/write formats of the control port are designed to be byte-oriented. this allows for easy programming of common microcontroller chips. in order to fit into a byte-oriented format, 0s are appended to the data fields before the msb in order to extend the data word to the next multiple of eight bits. for example, 28-bit words written to the parameter ram are appended with four leading 0s in order to reach 32 bits (4 bytes); 40-bit words written to the program ram are not appended with any 0s because it is already a full 5 bytes. these zero-extended data fields are appended to a 3-byte field consisting of a 7-bit chip address, a read/write bit, and an 11-bit ram/register address. the control port knows how many data bytes to expect based on the address that is received in the first three bytes. the total number of bytes for a single-location write command can vary from four bytes (for a control register write), to eight bytes (for a program ram write). burst mode may be used to fill contiguous register or ram locations. a burst mode write is done by writing the address and data of the first ram/register location to be written. rather than ending the control port transaction (by bringing the clatch signal high in the ad1940, after the data word, as would be done in a single- address write, the next data word can be written immediately without first writing its specific address. the ad1940 control port autoincrements the address of each write, even across the boundaries of the different rams and registers. table 21. parameter ram read/wri te format (single address) byte 0 byte 1 byte 2 byte 3 bytes 4C6 chip_adr [6:0], w /r 0000, param_adr[11:8] param_adr[7:0] 0000, param[27:24] param [23:0] table 22. parameter ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3 bytes 4C6 byte 7 byte 11 chip_adr [6:0], w /r 0000, param_adr[11:8] param_adr[7: 0] 0000, param[27:24] param[23:0] byte 8 byte 12 byte 9 byte 13 byte 10 byte 14 param_adr + 1 param_adr + 2 table 23. program ram read/wri te format (single address) byte 0 byte 1 byte 2 bytes 3C7 chip_adr [6:0], w /r 0000, prog_adr[11:8] prog_adr[7:0] prog[39:0] table 24. program ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3-7 byte 8 byte 13 chip_adr [6:0], w /r 0000, prog_adr[11:8] prog_adr[7:0] prog[39:0] byte 9 byte 14 byte 10 byte 15 byte 11 byte 16 byte 12 byte 17 prog_adr +1 prog_adr +2 table 25. control register read/write form at (core, serial out 0, serial out 1) byte 0 byte1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, reg_adr[11:8] reg_adr[7:0] data[15:8] data[7:0] table 26. control register read/write form at (ram configuration, serial input) byte 0 byte1 byte 2 byte 3 chip_adr [6:0], w /r 0000, reg_adr[11:8] reg_adr[7:0] data[7:0]
ad1940 rev. 0 | page 23 of 32 table 27. data capture register write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, data_capture_adr[11:8] data_cap ture_adr[7:0] 000, progcount[10:6] 1 progcount[5:0] 1 , regsel[1:0] 2 1 progcount[10:0] = value of program counter where trap occurs (the table of values is generated by the program compiler). 2 regsel[1:0] selects one of four registers (see data capture registers section). table 28. data capture (control port readback) register read format byte 0 byte 1 byte 2 bytes 3C5 chip_adr [6:0], w /r 0000, data_capture_adr[11:8] data_c apture_adr[7:0] data[23:0] table 29. safeload register data write format byte 0 byte 1 byte 2 byte 3 bytes 4C7 chip_adr [6:0], w /r 0000, safeload_adr[11:8] safeload_adr[7 :0] 000000, data[33:32] data[31:0] table 30. safeload register address write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, safeload_adr[11:8] safeload_adr[7:0] 000000, param_adr[9:8] param_adr[7:0]
ad1940 rev. 0 | page 24 of 32 serial data input/output ports the ad1940s flexible serial data input and output ports can be set to accept or transmit data in 2-channel formats or in an 8- or 16-channel tdm stream. data is processed in twos complement, msb-first format. the left channel data field always precedes the right channel data field in the 2-channel streams. in the tdm modes, slots 0 to 3 (8-channel tdm) or slots 0 to 7 (16-channel tdm) fall in the first half of the audio frame, and slots 4 to 7 (or slots 8 to 15 in 16-channel tdm) are in the second half of the frame. the serial modes are set in the serial output and serial input control registers. the input control register allows control of clock polarity and data input modes. the valid data formats are i 2 s , left-justified, right-justified (24-, 20-, 18-, or 16-bit), 8-channel, and 16-channel tdm. in all modes except for the right-justified modes, the serial port will accept an arbitrary number of bits up to a limit of 24. extra bits will not cause an error, but they will be truncated internally. proper operation of the right- justified modes requires that there be exactly 64 bclks per audio frame. the tdm data is input on sdata_in2 and sdata_in3 when in 2 8-channel tdm mode, and on sdata_in2 in 16-channel tdm mode. the lrclk in tdm mode can be input to the ad1940 as either a 50/50 duty cycle clock or as a bit-wide pulse. the two clock domains on the serial output ports can generate two separate 8-channel tdm streams or one 16-channel tdm stream. when in 16-channel tdm mode, the data is clocked by lrclk_out0 and bclk_out0. the ad1940 must be in slave mode for 16-channel tdm unless the data is sampled at 48 khz; the part cannot generate a tdm bit clock that is fast enough to support 96 khz or 192 khz. in 8-channel tdm mode, the ad1940 can be a master for 48 khz and 96 khz data, but not for 192 khz data. table 31 displays the modes in which the serial output port will function. the output control registers give the user control of clock polarities, clock frequencies, clock types, and data format. in all modes except for the right-justified modes (msb delayed by 8, 12, or 16), the serial port accepts an arbitrary number of bits up to a limit of 24. extra bits will not cause an error, but will be truncated internally. proper operation of the right-justified modes requires the lsb to align with the edge of the lrclk. the default settings of all serial port control registers correspond to 2-channel i 2 s mode. lrclk_out0 and bclk_out0 are clocks for serial output ports 0 to 7, and lrclk_out1 and bclk_out1 clock ports 8 to 15. all registers default to being set as all 0s. all register settings apply to both master and slave modes unless otherwise noted. table 32 shows the proper configurations for standard audio data formats. table 31 serial output port ma ster/slave mode capabilities f s 2-channel modes (i 2 s, left-justified, right-justified) 8-channel tdm 16-channel tdm 48 khz master and slave master and slave master and slave 96 khz master and slave master and slave slave only 192 khz master and slave slave only slave only table 32. data format configurations format lrclk polarity lrclk ty pe bclk polarity msb position i 2 s (figure 16) frame begins on falling edge clock data changes on falling edge delayed from lrclk edge by one bclk left-justified (figure 17) frame begins on rising edge clock data changes on falling edge aligned with lrclk edge right-justified (figure 18) frame begins on rising edge clock data changes on falling edge delaye d from lrclk edge by 8, 12, or 16 bclks tdm with clock (figure 19) frame begins on falling edge clock data changes on falling edge delayed from start of word clock by one bclk tdm with pulse (figure 20) frame begins on rising edge pulse data changes on falling edge delaye d from start of word clock by one bclk
ad1940 rev. 0 | page 25 of 32 table 33. serial output control register 1 (channels 0C7) (2644) register bits function 15 dither enable 0 = diabled 1 = enabled 14 internally link tdm streams into single, 16-channel stream 0 = indepenent 1 = linked 13 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 12 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 11 master/slave 0 = slave 1 = master 10:9 bclk frequency (master mode only) 00 = core_clock/24 01 = core_clock/12 10 = core_clock/6 11 = core_clock/3 8:7 frame sync frequency (master mode only) 00 = core_clock/1536 01 = core_clock/768 10 = core_clock/384 6 frame sync type 0 = lrclk 1 = pulse 5 serial output/tdm mode control 0 = 8 serial data outputs 1 = enable tdm (8- or 16-channel) on sdata_out0 4:2 msb position 000 = delay by 1 001 = delay by 0 010 = delay by 8 011 = delay by 12 100 = delay by 16 101 reserved 111 reserved 1:0 output word length, channels 0C7 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = 16 bits table 34. serial output control register 2 (channels 8C15) (2645) register bits function 15 dither enable 0 = disabled 1 = enabled 14 data capture serial out enable (uses sdata_out7) 0 = disable 1 = enable 13 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 12 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 11 master/slave 0 = slave 1 = master 10:9 bclk frequency (master mode only) 00 = core_clock/24 01 = core_clock/12 10 = core_clock/6 11 = core_clock/3 8:7 frame sync frequency (master mode only) 00 = core_clock/1536 01 = core_clock/768 10 = core_clock/384 6 frame sync type 0 = lrclk 1 = pulse 5 serial output/tdm mode control 0 = 8 serial data outputs 1 = enable tdm on sdata_out4 (8-channel) or sdata_out0 (16-channel) 4:2 msb position 000 = delay by 1 001 = delay by 0 010 = delay by 8 011 = delay by 12 100 = delay by 16 101 reserved 111 reserved 1:0 output word length, channels 8C15 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = 16 bits
ad1940 rev. 0 | page 26 of 32 serial output control registers dither enable (bit 15) setting this bit to 1 enables dither on the appropriate channels. internally link tdm streams into single 16-channel stream (bit 14, serial output control register 1) when this bit is set to 1, the tdm output stream is output in a single 16-channel stream on sdata_out0. when set to 0, tdm data is output on two independent 8-channel streams on pins sdata_out0 and sdata_out4. data capture serial out enable (bit 14, serial output control register 2) when set to 1, sdata_out7 is set as the output of the data capture digital output registers (2640C2641). see the data capture registers section for a full explanation of using this mode. lrclk polarity (bit 13) when set to 0, the left channel data is clocked when lrclk is low, and the right data clocked when lrclk is high. when set to 1, this is reversed. bclk polarity (bit 12) this bit controls on which edge of the bit clock the output data is clocked. data changes on the falling edge of bclk_outx when this bit is set to 0, and on the rising edge when this bit is set at 1. master/slave (bit 11) this bit sets whether the output port is a clock master or slave. the default setting is slave; on power-up, pins bclk_outx and lrclk_outx are set as inputs until this bit is set to 1, at which time they become clock outputs. bclk frequency (bits 10:9) when the output port is being used as a clock master, these bits set the frequency of the output bit clock, which is divided down from the internal 73.728 mhz core clock. frame sync frequency (bits 8:7) when the output port is used as a clock master, these bits set the frequency of the output word clock on the lrclk_outx pins, which is divided down from the internal 73.728 mhz core clock. frame sync type (bit 6) this bit sets the type of signal on the lrclk_outx pins. when set to 0, the signal is a word clock with a 50% duty cycle; when set to 1, the signal is a pulse with a duration of one bit clock at the beginning of the data frame. serial output/tdm mode control (bit 5) setting this bit to 1 changes the output port from multiple serial outputs to a single tdm output stream on the appropriate sdata_outx pin. this bit must be set in both serial output control registers to enable 16-channel tdm on sdata_out0. msb position (bits 4:2) these three bits set the position of the msb of data with respect to the lrclk edge. the data output of the ad1940 is always msb first. output word length (bits 1:0) these bits set the word length of the output data-word. all bits following the lsb are set to 0. table 35. serial input control register (2646) register bits function 5 8-/16-channel tdm input 0 = dual 8-channel tdm 1 = 16-channel tdm input 4 lrclk polarity 0 = frame begins on falling edge 1 = frame begins on rising edge 3 bclk polarity 0 = data changes on falling edge 1 = data changes on rising edge 2:0 serial input mode 000 = i 2 s 001 = left-justified 010 = tdm 011 = right-justified, 24-bit 100 = right-justified, 20-bit 101 = right-justified, 18-bit 110 = right-justified, 16-bit serial input control register 8-/16-channel tdm input (bit 5) setting this bit to 0 puts the ad1940 into dual 8-channel tdm input mode, with the two streams coming in on sdata_in2/tdm_in1 and sdata_in3/tdm_in0. channels 0 to 7 will be input on tdm_in0 and channels 8 to 15 will come in on tdm_in1. setting this bit to 1 puts the part in 16-channel tdm input mode, input on tdm_in1. lrclk polarity (bit 4) when set to 0, the left channel data on the sdata_inx pins is clocked when lrclk_in is low; and the right input data clocked when lrclk_in is high. when set to 1, this is reversed. in tdm mode, when this bit is set to 0, data is clocked in starting with the next appropriate bclk edge (set in bit 3 of this register) following a falling edge on the lrclk_in pin. when set to 1 and running in tdm mode, the input data is valid on the bclk edge following a rising edge on the word clock (lrclk_in). the serial input port can also operate with a pulse input signal, rather than a clock. in this case, the first edge of the pulse is used by the ad1940 to start the data frame. when this polarity bit is set to 0, a low pulse should be used, and a high pulse should be used when the bit it set to 1.
ad1940 rev. 0 | page 27 of 32 bclk p o la ri t y (bit 3) this b i t con t r o ls o n w h i c h e d ge o f t h e b i t clo c k t h e i n p u t da t a c h a n g e s, an d on whic h edg e i t is c l o c k e d . da ta cha n g e s o n t h e fal l in g edg e o f b c lk_in w h en this b i t is s e t to 0, a n d on the r i sin g edg e w h en this b i t is s e t a t 1. s e ria l inp u t m o de ( b its 2: 0) t h ese tw o b i t s co n t r o l th e da t a f o rm a t th a t t h e in p u t po r t exp e c t s t o r e ceiv e . b i ts 3 an d 4 o f this co n t r o l r e g i s t er wil l o v err i de th e s e t t in gs in bi ts 2:0, s o al l f o ur b i ts m u s t be c h an g e d t o g e t h er fo r p r o p er o p era t ion i n s o m e m o de s. the clo c k di a g ra m s fo r t h es e mo des a r e sh o w n i n f i gur e 16, f i gur e 17, a nd f i gur e 18. n o te t h a t fo r lef t - j ust i f i e d an d r i g h t - j u st if ie d m o de s t h e lrc l k p o la r i ty is hi g h , t h e n lo w , w h ich is o p p o si te f r o m th e d e fa ul t se t t in g o f b i t 4. w h en t h es e b i ts a r e s e t t o accep t a td m in p u t, th e ad1940 s da ta s t a r ts a f t e r th e e d g e def i n e d b y b i t 4. f i gur e 19 s h o w s an 8 - ch an nel t d m st re am w i t h a h i g h - t o - l o w t r i g ge re d l r c l k a nd da t a chan g i n g o n t h e fa l l ing e d ge o f t h e b c lk. t h e ad1940 exp e c t s th e ms b o f eac h da t a s l o t de l a yed b y o n e b c lk f r o m t h e b e g i nnin g o f t h e s l o t , j u st li k e i n t h e s t er e o i 2 s f o r m a t . i n 8-c h anne l td m m o de , cha n n e ls 0 t o 3 wil l be in t h e f i rst ha lf o f t h e f r a m e, and c h a n n e ls 4 to 7 wi l l b e i n t h e s e co nd ha lf. w h e n i n 1 6 -cha n n el td m m o d e , t h e f i rst ha lf-f ra m e wi l l h o ld c h ann e ls 0 t o 7, a n d t h e s e co nd half-f rame wil l ha v e c h a n n e ls 8 t o 1 5 . f i gur e 20 sh o w s a n exam ple o f a td m st r e am r u nnin g w i t h a p u ls e w o r d clo c k, w h ich w o u l d b e us e d to in t e r f ace t o adi co de cs i n t h eir a u xi li a r y m o de . t o w o rk in t h is m o de o n ei t h er th e in p u t o r o u t p u t s e r i al p o r t s, th e ad1940 s h o u ld b e s e t t o f r a m e beg i nning o n the r i sin g e d g e o f lr cl k, da ta c h a n gi n g o n th e falli n g e d ge o f b c l k , a n d ms b posi ti o n d e l a y e d f r om t h e st ar t of t h e wo rd cl o c k by on e b c l k . t a b l e 32 expla i ns t h e clo c k s e t t i n gs fo r e a ch o f t h es e fo r m a t s. lrclk bclk s dat a msb left channel lsb msb right channel lsb 1 /f s 04607-0-023 f i g u re 16. i 2 s m o de 16 to 24 bi ts p e r cha n nel lrclk bclk sdata left channel msb lsb msb right channel lsb 1 /f s 04607-0-024 f i gure 1 7 . l e f t - j usti fi ed m o de 16 to 24 bi ts p e r c h a n nel lrclk bclk sdata left channel msb lsb msb right channel lsb 1 /f s 04607-0-025 f i gure 1 8 . r i ght- j u sti f i e d mo d e 16 to 24 bi ts p e r cha n nel
ad1940 rev. 0 | page 28 of 32 lrclk bclk data slot 1 slot 2 slot 5 slot 6 32 bclks msb msb?1 msb?2 256 bclks slot 3 slot 4 slot 7 slot 8 lrclk bclk data 04607-0-012 f i g u re 19. 8- cha n n e l t d m m o d e . th is diag r a m s h o w s jus t one of t h e f o r m at s in wh ic h t h e a d 1 9 4 0 c a n oper ate in tdm m o d e . ple a s e r efer to the seria l d a ta input/ o u tput p o r t s secti o n for a mor e c o m p l e t e d e scri ptio n o f the mo des o f o p er a t io n. lrclk slot 0 slot 1 slot 2 slot 3 slot 4 slot 5 slot 6 slot 7 ch 0 bclk sdat a msb tdm 8th ch 32 bclks msb tdm 04607-0-022 f i gure 20. tdm m o de with p u lse w o r d clo c k
ad1940 rev. 0 | page 29 of 32 initializa tion power-up sequence the ad1940 has a b u il t-in p o wer - u p s e q u en c e tha t ini t ializes th e co n t en t s o f all i n t e rn al rams. duri n g th i s ti m e , th e co n t en ts o f t h e in t e r n al p r og ra m b o o t r o m a r e co p i e d t o the i n te r n a l pro g r a m r a m me mor y , and t h e p a r a me te r r a m (al l 0s) is f i l l ed wi t h val u es f r o m i t s as s o cia t e d bo o t r o m. the d e f a u l t b o o t rom pro g r a m s i mp l y c o pi e s t h e s e r i a l i n p u t s to t h e s e r i al o u t p uts w i t h n o p r o c e s sin g . the da t a m e m o r i es a r e also c l ea r e d d u ri n g th i s tim e . t h e b o ot s e qu e n c e , w h i c h st ar t s on t h e r i s i ng e d ge of t h e res e tb p i n, lasts f o r 8,192 c y c l es o f th e sig n al o n the m c lk p i n a t st ar t-u p . a ssu ming e v e n t h e sl owe s t p o ss ibl e s i g n a l on this p i n, a 64 f s c l o c k, the b o o t s e q u en ce wil l stil l co m p let e b e fo r e t h e p ll l o cks t o t h e i n p u t clo c k. si n c e t h e b o ot s e q u e n c e r e q u ir es a s t ab le mas t er clo c k, t h e us er sh o u ld a v o i d wr i t in g t o o r r e adin g f r o m th e r e g i st ers un til th e mcl k in p u t sig n al has s e t t le d an d t h e p ll has lo ck e d . the p ll t a k e s a p p r o x ima t e l y 3 ms to l o ck . c o m i ng out of re s e t , t h e cl o c k mo d e i s i m me - dia t e l y s e t b y t h e p ll_c tr l0, p ll_c trl1, and p ll_ ctrl2 pi ns . r e s e t i s s y nc he d to t h e f a l l i ng e d g e of t h e i n te r n a l mc l k . the p o w e r - u p defa u l t sig n al p r o c es sin g f l o w in t h e ad1940 sim p l y ta k e s the eig h t in p u ts and co p i es t h es e sig n als t o th e 16 dig i tal ou t p u t s, as sh o w n in f i gur e 21. 04607-0-004 s data_in0 s data_in1 s data_in2 s data_in 3 sdata_out0 sdata_out1 sdata_out2 sdata_out3 sdata_out4 sdata_out5 sdata_out6 sdata_out7 f i gure 2 1 . d e f a u l t p r o g r a m s i gnal f l o w se t t ing master cl ock/pll mode the ad1940 s m c lk in p u t f e eds a p l l, which g e n e ra t e s the 1536 f s clo c k to r u n t h e ds p c o r e . i n n o r m a l op er a t ion, t h e in p u t t o mclk m u s t b e on e o f t h e fol l o w in g; 64 f s , 256 f s , 384 f s , o r 512 f s , w h e r e f s is t h e i n p u t s a m p li n g ra t e . th e m o de is s e t on p ll_c trl0, pll_ctrl1, an d p ll_c trl2, acco r d in g t o t a b l e 36. i f th e ad1940 is s e t t o r e cei v e do ub le- ra t e sig n als (b y r e d u cin g t h e n u m b er o f p r og ra m s t eps / s a m p le b y a fac t o r o f 2 usin g t h e co r e c o n t r o l r e g i s t er), t h e n t h e mast er c l oc k f r eq ue n c ie s m u s t be ei th er 32 f s , 128 f s , 192 f s , o r 256 f s . i f th e ad1940 is s e t to r e cei v e q u ad-ra t e sig n als (b y r e d u cin g t h e n u m b er o f p r og ra m s t eps / s a m p le b y a fac t o r o f 4 usin g t h e co r e c o n t r o l r e g i s t er), t h e n t h e mast er clo c k f r eq uen c ies m u s t b e on e o f 16 f s , 64 f s , 96 f s , o r 128 f s . on p o w e r - up , a clo c k sig n a l m u st b e p r es en t o n mclk s o t h a t th e ad1940 c a n co m p let e i t s ini t ializa tio n r o u t in e . the p ll can als o r u n in b y p a s s mo de , w h er e t h e clo c k p r es en t o n mclk is fe d dir e c t ly to t h e ds p co r e , a l t h o u g h t h is s e t t i n g is n o t re c o m m e nd e d for nor m a l op e r a t i o n . table 36. pl l modes mclk i n p u t p l l _ c t r l 2 p l l _ c t r l 1 p l l _ c t r l 0 64 f s 0 0 0 256 f s 0 1 0 384 f s x 1 x 1 1 512 f s 1 0 0 b y p a s s 1 1 0 1 x = d o nt care the clo c k m o de sh o u ld n o t b e cha n ge d w i t h o u t a l s o r e s e t t in g th e ad1940. i f t h e m o de is c h an g e d on the f l y , a c l ic k o r p o p m a y re su lt on t h e output s . t h e st ate of t h e pl l _ c t r l x pi ns s h o u ld b e c h a n g e d w h ile res e tb is h e ld lo w . v o l t a g e re gul a t or the ad1940 inc l udes a n on-bo a r d v o l t a g e r e gu la t o r tha t al lo ws t h e chi p t o b e us e d i n sys t e m s w h er e a 2.5 v su p p l y is n o t a v a i la b l e , b u t 3. 3 v o r 5 v is. the o n l y ext e r n al co m p on en ts n e e d e d f o r this a r e a pnp tra n s i s t o r s u c h as an fzt953, a sin g l e ca p a c i to r , a nd a sin g le r e sisto r . th e r e com m e n de d desig n fo r t h e v o l t a g e r e gu l a t o r is s h o w n in f i gur e 22. th e 10 f a nd 100 nf ca p a c i t o rs sh o w n in t h is s c h e m a t i c a r e r e co m m en d e d fo r b y p a ssin g, b u t ar e n o t n e ce ss a r y fo r o p era t io n. h e r e , vdd is t h e ma in sy stem volt a g e (3.3 v o r 5 v) a nd sh o u ld b e co n n e c te d to v s upp l y . 2.5 v is g e n e r a t e d a t th e tra n sis t o r s c o l l ec t o r , whic h is co nne c t e d t o t h e vdd p i n s , p ll_vd d an d v s ens e . th e r e fer e n c e vol t a g e o n vref is 1. 15 v a nd is ge ner a te d b y t h e r e gu la t o r . a 1 nf ca p a ci t o r s h ou ld be conn ec t e d b e tween this p i n and g r o u nd . vdrive is co n n e c te d to t h e b a s e o f t h e pnp t r ans i stor . a 1 k ? re s i stor shou l d b e c o n n e c te d b e twe e n vd rive and v s up p l y . i f th e r e gula t o r i s n o t use d in th e d e si gn , v s u p p l y , v r ef , vdrive, an d v s ens e c a n b e t i e d to g r o u nd . 10 f 10 f 100nf 100nf 1nf 1k ? ad1940 dvdd fzt953 04607-0-009 vsu pply vr ef v driv e vsen se vd d + + pll_vdd f i gure 2 2 . v o l t a g e regul a to r d e si gn
ad1940 rev. 0 | page 30 of 32 outline dimensions top view (pins down) 1 12 13 25 24 36 37 48 0.27 0.22 0.17 0.50 bsc 7.00 bsc sq seating plane 1.60 max 0.75 0.60 0.45 view a 9.00 bsc sq pin 1 0.20 0.09 1.45 1.40 1.35 0.08 max coplanarity view a rotated 90 ccw seating plane 10 6 2 7 3.5 0 0.15 0.05 compliant to jedec standards ms-026bbc f i g u re 23. 4 8 -l ead l o w-p r of il e q u ad flat p a ck ag e [l qfp ] di me nsio ns sho w n i n m i ll im e t e r s ordering guide model temperature r a nge package descri ption package option ad1940yst C40c to +105c 48-lead lqfp st-48 ad1940ystrl C40c to +105c 48-lead lqfp st-48 in 13 ree l ad1940ystz 1 C40c to +105c 48-lead lqfp st-48 ad1940ystzrl 1 C40c to +105c 48-lead lqfp st-48 in 13 ree l e v a l - a d 1 9 4 0 e b e v a l u a t i o n boar d 1 z= pb - f r e e p a r t .
ad1940 rev. 0 | page 31 of 32 notes
ad1940 rev. 0 | page 32 of 32 notes ? 2004 anal o g de v i ce s , i n c . al l rig h ts r e s e r v e d . t r ad e m ar ks a n d reg i st e r e d tr ad emar k s are t h e p r op e r t y of t h e i r resp e c tive o w ne r s . d04607-0 - 7/04 (0)


▲Up To Search▲   

 
Price & Availability of EVAL-AD1940EB

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X